/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
using System;
using System.Collections;

namespace UnitedBinary.HarnessIt
{
	internal class AssociatedTestTracing
	{
		private string testName = null;
		private ArrayList traceLines = new ArrayList();

		internal AssociatedTestTracing(string testName)
		{
			this.testName = testName;
		}

		internal void AddTrace(string trace)
		{
			if (trace != null && trace.Length > 0)
			{
				traceLines.Add(trace);
			}
		}

		internal string [] TraceMessages
		{
			get
			{
				string [] traces = new string [traceLines.Count];
				traceLines.CopyTo(traces);

				return traces;
			}
		}

		internal string TestName
		{
			get
			{
				return testName;
			}
		}
	}
}
